import React from 'react';

// 
import { Switch, Route } from 'react-router-dom'
//
import Child from '../components/child'
import Son from '../components/grandson'
import Login from '../views/Login/index'
import HomeIndex from '../views/HomeIndex/index'

export default () => {
  return <Switch>
    <Route path="/" exact component={HomeIndex}></Route>
    <Route path="/child" component={Child}></Route>
    <Route path="/son" component={Son}></Route>
    <Route path="/login" component={Login}></Route>
  </Switch>
}